package com.test.webdemo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.test.webdemo.dao.UserDao;
import com.test.webdemo.entity.User;
import com.test.webdemo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public User getUserById(String id) {
        return userDao.getUserById(id);
    }

    @Override
    public void addUser(User user) {
        userDao.addUser(user);
    }
}
